package command

import "fmt"

// TV 具体接收者
type TV struct {
	isRunning bool
}

func (T *TV) on() {
	T.isRunning = true
	fmt.Println("Turning TV on")
}

func (T *TV) off() {
	T.isRunning = false
	fmt.Println("Turing TV off")
}

